package com.zrrd.gmall.order.fegin;

import com.zrrd.gmall.common.result.Result;
import com.zrrd.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@FeignClient("service-order")
public interface OrderFeginClient {

    //确认订单（结算）
    @GetMapping("/api/order/auth/trade")
    public Result<Map<String, Object>> trade();

    //获取订单信息（包含了订单明细 给支付服务提供数据）
    @GetMapping("/api/order/inner/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable("orderId") Long orderId);
}
